package main.model;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "model",type = "modelType")
public class ElaModel implements Serializable {
    @Id
    private Integer id;
    private String indexName;
    private String picPath;
    private String author;
    @Field(type = FieldType.Text)
    private String content;
    private String title;
    private String source;
    private String time;
    private Date createTime;
    private String editor;
    private Integer type;//1 一带一路 2 中国工程 case,3会议报到 4中国汽车新闻网
    private String brief;
}
